import http from "@/libs/http";
class SysControlTypeServer {
  async all(param) {
    let res = await http.get("/sys_control_type/all", param);
    return res;
  }

  async page(row) {
    let res = await http.post("/sys_control_type/page", row);
    return res;
  }

  async add(param) {
    let res = await http.post("/sys_control_type/add", param);
    return res;
  }

  async edit(param) {
    let res = await http.post("/sys_control_type/edit", param);
    return res;
  }
  async del(param) {
    let res = await http.post("/sys_control_type/del", param);
    return res;
  }
}

const sysControlTypeServer = new SysControlTypeServer();
export default sysControlTypeServer;
